package com.meowcook.service;

import com.meowcook.pojo.dto.CollectionDTO;
import com.meowcook.pojo.vo.CollectionVO;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-05-16
 * Time: 13:59
 */
public interface ICollectionService {

    /**
     * 查询收藏记录
     * @param userId 用户id
     * @param recipeId 食谱id
     * @return CollectionVO
     */
    CollectionVO selectCollectionRecord(Long userId, Long recipeId);

    /**
     * 收藏
     * @param collectionDTO 收藏参数
     */
    @Transactional
    void collect(CollectionDTO collectionDTO);

}
